{% extends "single.html" %}
{% block title %}{{ page_title }}{% endblock %}
{% block styles %}
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}styles/userslist.css">
{% endblock %}
{% block main %}  
    <div class="userlist">
        <h3>所用用户</h3>
        <ul>
            {% if users %}
                {% for duser in users %}
                    <li>
                        <div class="avatar50">
                            <img src="{{ MEDIA_URL }}avatar/50/{{ duser.profile.avatar }}">
                        </div>
                        <div class="profile">
                            <strong><a href="{% url mblog_user_index duser.username %}">{{ duser.username }}</a></strong>
                        </div>
                        <div class="area">
                            <em><label>所在地 :</label>{{ duser.about }}</em>
                        </div>
                        <div class="about">
                            <p><label>简介 :</label>{{ duser.about }}</p>
                        </div>
                        <div class="operating">
                            <a href="{% url mblog_follower_add user.username duser.username  %}">关注此人</a>
                            <a href="{% url mblog_privatemsg_add user.username duser.username  %}">发送私信</a>
                        </div>
                        <div class="clear"></div>
                    </li>
                {% endfor %}
            {% endif %}
        </ul>
    </div> 

    {% include 'include/paginator.html' %}
    
{% endblock %}
